/* 打包时间：2025-11-29 21:10:27 */
(function(){
  try{
    var bridge = null;
    try{ bridge = runtime && runtime.accessibilityBridge; }catch(e){}
    if(!bridge){
      try{
        var m = runtime.getClass().getDeclaredMethod("getAccessibilityBridge");
        m.setAccessible(true);
        bridge = m.invoke(runtime);
      }catch(e){}
    }
    if(!bridge){ return; }
    try{
      var WF = Packages.com.stardust.autojs.core.accessibility.AccessibilityBridge$WindowFilter;
      bridge.setWindowFilter(new JavaAdapter(WF,{ filter:function(info){ return true; } }));
    }catch(e){}
  }catch(e){}
})();
module['exports'] = function (_0x5532d8) {
    var _0x37a101 = {};
    function _0x43f661(_0x56a9d5) {
        if (_0x37a101[_0x56a9d5])
            return _0x37a101[_0x56a9d5]['exports'];
        var _0x2c41b1 = _0x37a101[_0x56a9d5] = {
            'i': _0x56a9d5,
            'l': ![],
            'exports': {}
        };
        return _0x5532d8[_0x56a9d5]['call'](_0x2c41b1['exports'], _0x2c41b1, _0x2c41b1['exports'], _0x43f661), _0x2c41b1['l'] = !![], _0x2c41b1['exports'];
    }
    return _0x43f661['m'] = _0x5532d8, _0x43f661['c'] = _0x37a101, _0x43f661['d'] = function (_0x55dbae, _0x3135a5, _0x17f23d) {
        !_0x43f661['o'](_0x55dbae, _0x3135a5) && Object['defineProperty'](_0x55dbae, _0x3135a5, {
            'enumerable': !![],
            'get': _0x17f23d
        });
    }, _0x43f661['r'] = function (_0x5af513) {
        typeof Symbol !== 'undefined' && Symbol['toStringTag'] && Object['defineProperty'](_0x5af513, Symbol['toStringTag'], { 'value': 'Module' }), Object['defineProperty'](_0x5af513, '__esModule', { 'value': !![] });
    }, _0x43f661['t'] = function (_0x1d4540, _0x4b05f5) {
        if (_0x4b05f5 & 0x1)
            _0x1d4540 = _0x43f661(_0x1d4540);
        if (_0x4b05f5 & 0x8)
            return _0x1d4540;
        if (_0x4b05f5 & 0x4 && typeof _0x1d4540 === 'object' && _0x1d4540 && _0x1d4540['__esModule'])
            return _0x1d4540;
        var _0x164281 = Object['create'](null);
        _0x43f661['r'](_0x164281), Object['defineProperty'](_0x164281, 'default', {
            'enumerable': !![],
            'value': _0x1d4540
        });
        if (_0x4b05f5 & 0x2 && typeof _0x1d4540 != 'string') {
            for (var _0x5932ea in _0x1d4540)
                _0x43f661['d'](_0x164281, _0x5932ea, function (_0x4dbd35) {
                    return _0x1d4540[_0x4dbd35];
                }['bind'](null, _0x5932ea));
        }
        return _0x164281;
    }, _0x43f661['n'] = function (_0x4987e6) {
        var _0x2e260d = _0x4987e6 && _0x4987e6['__esModule'] ? function _0x3cb0ba() {
            return _0x4987e6['default'];
        } : function _0x1d6118() {
            return _0x4987e6;
        };
        return _0x43f661['d'](_0x2e260d, 'a', _0x2e260d), _0x2e260d;
    }, _0x43f661['o'] = function (_0x33fea6, _0x20ff63) {
        return Object['prototype']['hasOwnProperty']['call'](_0x33fea6, _0x20ff63);
    }, _0x43f661['p'] = '', _0x43f661(_0x43f661['s'] = 0x10);
}({
    0x1: function (_0x4a7a4b, _0x1dc656) {
        _0x4a7a4b['exports'] = require('./datastore.js');
    },
    0x10: function (_0x4c7121, _0x477111, _0x518037) {
        var _0x400636 = {};
        _0x4c7121['exports'] = _0x400636, _0x400636['getEngine'] = function (_0x11db92) {
            var _0x2d000b, _0x4d8fd2;
            let _0x15eb6f = null, _0x39fc9d = ((_0x2d000b = engines) === null || _0x2d000b === void 0x0 || (_0x4d8fd2 = _0x2d000b['all']) === null || _0x4d8fd2 === void 0x0 ? void 0x0 : _0x4d8fd2['call'](_0x2d000b)) || [];
            for (let _0x2c8449 = 0x0; _0x2c8449 < _0x39fc9d['length']; _0x2c8449++) {
                let _0x231268 = _0x39fc9d[_0x2c8449], _0x27b674 = String(_0x231268['source']);
                console['log']('[engine|L9]', 'engine_temp.source:', _0x27b674);
                if (typeof _0x11db92 == 'string' && _0x27b674['indexOf'](_0x11db92) > -0x1)
                    _0x15eb6f = _0x231268;
                else {
                    if (_0x11db92 instanceof Array)
                        for (let _0x2fbcf5 = 0x0; _0x2fbcf5 < _0x11db92['length']; _0x2fbcf5++) {
                            let _0x2b6a10 = _0x11db92[_0x2fbcf5];
                            if (_0x27b674['indexOf'](_0x2b6a10) > -0x1) {
                                _0x15eb6f = _0x231268;
                                break;
                            }
                        }
                }
                if (_0x15eb6f)
                    break;
            }
            return !_0x15eb6f && (console['log']('[engine|L26]', 'targetEngine:', _0x15eb6f), console['log']('[engine|L27]', 'engine_list:', _0x39fc9d)), _0x15eb6f;
        }, _0x400636['getOtherEngine'] = function () {
            var _0x572b3c, _0xc0e2b6, _0x4df5c6, _0x594241;
            let _0x5ae7b5 = [], _0x11dfda = ((_0x572b3c = engines) === null || _0x572b3c === void 0x0 || (_0xc0e2b6 = _0x572b3c['all']) === null || _0xc0e2b6 === void 0x0 ? void 0x0 : _0xc0e2b6['call'](_0x572b3c)) || [];
            if (_0x11dfda['length'] == 0x1)
                return _0x5ae7b5;
            let _0x5cc5cd = (_0x4df5c6 = engines) === null || _0x4df5c6 === void 0x0 || (_0x594241 = _0x4df5c6['myEngine']) === null || _0x594241 === void 0x0 ? void 0x0 : _0x594241['call'](_0x4df5c6), _0x1efdbf = _0x5cc5cd === null || _0x5cc5cd === void 0x0 ? void 0x0 : _0x5cc5cd['id'];
            for (let _0x4ee0d5 = 0x0; _0x4ee0d5 < _0x11dfda['length']; _0x4ee0d5++) {
                let _0x36610b = _0x11dfda[_0x4ee0d5];
                _0x36610b['id'] != _0x1efdbf && _0x5ae7b5['push'](_0x36610b);
            }
            return _0x5ae7b5;
        }, _0x400636['stopOtherEngine'] = function () {
            try {
                let _0x48a61c = engines['myEngine']();
                console['log']('[engine|L56]', '当前引擎:', _0x48a61c);
                let _0x41e9c1 = _0x400636['getOtherEngine']();
                for (let _0x1d7262 = 0x0; _0x1d7262 < _0x41e9c1['length']; _0x1d7262++) {
                    var _0x2b7e1b;
                    let _0x322e3b = _0x41e9c1[_0x1d7262];
                    console['log']('[engine|L60]', '中断引擎:', _0x322e3b), _0x322e3b === null || _0x322e3b === void 0x0 || (_0x2b7e1b = _0x322e3b['forceStop']) === null || _0x2b7e1b === void 0x0 || _0x2b7e1b['call'](_0x322e3b);
                }
            } catch (_0x337912) {
                console['warn']('[engine|L64]', '执行stopOtherEngine出错', _0x337912);
            }
        }, _0x400636['sendEngineEmit'] = function (_0x260966, _0x392a66, _0x3ee131) {
            try {
                let _0x14796b = _0x400636['getEngine'](_0x260966);
                if (_0x14796b !== null && _0x14796b !== void 0x0 && _0x14796b['emit'])
                    _0x14796b['emit'](_0x3ee131, '启动脚本');
                else {
                    var _0x24be4c;
                    console['log']('[engine|L73]', '引擎意外退出,正在重启~');
                    var _0x518f8c = _0x518037(0x1);
                    _0x518f8c['put']('ScriptFrom', 'script'), _0x400636['stopOtherEngine']();
                    let _0x286a66 = engines['execScriptFile'](_0x392a66, {
                        'delay': 0x32,
                        'loopTimes': 0x1,
                        'interval': 0x0
                    });
                    sleep(0x3e8);
                    let _0x41d398 = _0x286a66 === null || _0x286a66 === void 0x0 || (_0x24be4c = _0x286a66['getEngine']) === null || _0x24be4c === void 0x0 ? void 0x0 : _0x24be4c['call'](_0x286a66);
                    _0x41d398 !== null && _0x41d398 !== void 0x0 && _0x41d398['emit'] ? (console['info']('[engine|L82]', '★★重启引擎成功!!!★★★'), _0x41d398['emit'](_0x3ee131, '启动脚本')) : console['error']('[engine|L85]', '★★★重启引擎失败!!!★★★');
                }
            } catch (_0x5ed0f4) {
                console['error']('[engine|L89]', _0x5ed0f4);
                const _0xd83acf = [
                    '忽略报错',
                    '确认上报'
                ];
                dialogs['select']('运行时异常,是否上报?', _0xd83acf)['then'](_0x271af9 => {
                    if (_0x271af9 === -0x1 || _0x271af9 === 0x0) {
                        toastLog('没有选择'), toastLog('问后续仍要上报?\x0a答:可在界面右上角选择[上报异常],选择日志文件进行上报');
                        return;
                    }
                    const _0x42f606 = _0x518037(0x11);
                    _0x42f606['reportConsoleLogFile']();
                });
            }
        };
    },
    0x11: function (_0x437c70, _0x3887ea) {
        _0x437c70['exports'] = require('./consolefile.js');
    }
});